home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
352_01.zip
/
FILESIZE.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-10
|
267b
|
17 lines
/* FILESIZE.C - get and return filesize.
*/
#include <stdlib.h>
#include <sys\stat.h>
long filesize ( char *spec )
{
long l;
struct stat st;
l = stat ( spec, &st );
if ( l != -1 )
{
l = st.st_size;
}
return (l); /* filesize () */
}